<!doctype html>
<body>
<span id="status">success</span>
<script>
iframe = document.body.appendChild(document.createElement("iframe"));
obj = iframe.contentWindow.Object;
app = iframe.contentWindow.chrome.app;
iframe.remove();
obj.prototype.__defineGetter__("handler_function", function() {
  document.getElementById('status').textContent = 'FAILED';
  return 0xBADDEAD;
});
app.getDetails();
</script>
</body>
